/**
 * @author Andrew Dashin <dashin@andrewdashin.com>
 */

 function i18n(sText) {
	var lang = Settings.get("language");
	
	if (lang != null && typeof i18ndata[lang] != "undefined" && 
		typeof i18ndata[lang][sText] != "undefined") {
		return i18ndata[lang][sText];
	} else {
		return sText;
	}
 }
 
var i18ndata = {
	"en": {
		"mytest.test.value": "Okay",
		"mainmenu.createentity.editorisopened.text": "You can not create entities while Entity Editor is being opened.",
		"mainmenu.createentity.entityexists.text": 	 "Entity with such name already exists.",
		"about.title.text": "About",
		"mypropsinput.notnull.title.text": "Not null",
		"mypropsinput.length.title.text": "Length",
		"mypropsinput.unsigned.title.text": "Unsigned",
		"mypropsinput.zerofill.title.text": "Zerofill",
		"mypropsinput.labels.fieldname.text": "Field name",
		"mypropsinput.labels.fieldname.fieldemptyalert": "The Field name could not be empty",
		"myentityeditor.title.text": "Entity Editor",
		"myentityeditor.labels.enginetype.text": "Engine Type:",
		"myentityeditor.labels.entityname.text": "Entity Name:",
		"myentityeditor.labels.primarykey.text": "Primary Key:",
		"myentityeditor.labels.fields.text": "Fields:",
		"myentityeditor.labels.addfield.text": "New field:",
		"myentityeditor.alerts.emptyfield.text": "The Field name could not be empty",
		"myentityeditor.alerts.enityexists.text": "Entity with such name already exists",
		"myentityeditor.alerts.entityemptyname.text": ""
		
		
	},
	"ru": {
		"mytest.test.value": "Хорошо"
	}	
};